package com.kyh.vo;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;


public class BootstrapTableVoJA {
    private long total;

    private JSONArray rows;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
	public JSONArray getRows() {
		return rows;
	}
	public void setRows(JSONArray rows) {
		this.rows = rows;
	}
	public void setRowsByListMap(List<Map<String, Object>> listMap) {
		String jsonStr = JSON.toJSONStringWithDateFormat(listMap, "yyyy-MM-dd HH:mm:ss", SerializerFeature.WriteDateUseDateFormat);
		JSONArray JA = JSON.parseArray(jsonStr);
		this.rows = JA;
	}
	public void addRows(JSONObject rowJO) {
		
		this.rows.add(rowJO);
	}
}
